package cn.tedu.service;

import cn.tedu.pojo.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Amos
 * @date 2021/9/11
 */

@Component
public class CarServiceImpl implements CarService{

    // 实现接口，重写抽象方法
    @Override
    public Car get() {
        Car c = new Car();
        // lombok的链式编程
        c.setName("保时捷").setColor("红色").setPrice(10000.0);
        return c;
    }
}
